﻿
using Microsoft.VisualStudio.Modeling.Diagrams;

namespace BizAppFactory.Domain
{
    public partial class CRUDApplicationServiceShape
    {
        /// <summary>
        /// Cannot move the children outside their children shape
        /// </summary>
        public override bool AllowsChildrenToResizeParent
        {
            get
            {
                return true;
            }
        }

        /// <summary>
        /// Cannot size down the parent shape if the children shapes were to move out of their
        /// parent's boundary
        /// </summary>
        public override SizeD MinimumResizableSize
        {
            get
            {
                return this.CalculateMinimumSizeBasedOnChildren();
            }
        }
    }
}
